Skip to content

feat: global compaction threshold#63

Draft
ariane-emory wants to merge 112 commits intodevfrom
feat/global-compaction-threshold
Draft

feat: global compaction threshold#63
ariane-emory wants to merge 112 commits intodevfrom
feat/global-compaction-threshold

Conversation

@ariane-emory
Copy link
Owner

DUMMY PR, IGNORE.

- Add experimental.context_compaction_threshold config option (10-100% range)
- Modify SessionCompaction.isOverflow to be async and use configurable threshold
- Default threshold of 100% maintains current behavior for backward compatibility
- Add debug logging for threshold calculations
- Remove unused PROMPT_COMPACTION import from system.ts

Allows users to configure at what percentage of usable context space
automatic compaction will be triggered via the experimental setting.
@ariane-emory ariane-emory force-pushed the dev branch 2 times, most recently from 4efbfcd to 8ad5262 Compare February 8, 2026 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant